<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,
minimum-scale=1.0, maximum-scale=1.0, viewport-fit=cover, user-scalable=no">
    <link rel="icon" type="image/svg+xml" href="../icon.png" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <title>CC星球</title>
    <script src="http://hyh5.xiaochaipaidui.com/tool.js"></script>
    <link rel="stylesheet" href="./public/css/clear.css">
  </head>
  <body ondragstart="return false" onselectstart="return false">
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
  <script>
    function setFontSize() {
      let baseSize = 100
      let width = document.documentElement.clientWidth
                  ||document.body.clientWidth
                  || window.innerWidth;
      let scale = width / 375
      // 设置页面根节点字体大小，最高放大比例为2）
      document.documentElement.style.fontSize = baseSize * scale + 'px'
    }
    // 初始化
    setFontSize()
    // 监听窗口变化
    window.onresize = ()=> {
        setFontSize()
    }

  </script>
</html>
